<?php
    session_start();
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <html>
        <head>
            <!--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">-->
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta name="keywords" content="dai hoc can tho, dhct, ctu, can tho university, cantho uviversity"/>
            <meta name="description" content="dai hoc can tho, dhct, ctu, can tho university, cantho uviversity"/>
            <title> quản lý tour du lịch </title>

            <!--đây là phần css-->

            <link rel="stylesheet" type="text/css" href="css/style.css" />
            <link rel="stylesheet" type="text/css" href="css/login_css.css" />
            <link rel="stylesheet" type="text/css" href="css/san-pham.css" />
            <link rel="stylesheet" type="text/css" href="css/chuc_nang.css" />

            <!--kết thúc css-->
        </head>
        <?php
        include 'connect.php';

        if (isset($_GET['content'])) {
            $content = $_GET['content'];
        }
        if (isset($_GET['idtour'])) {
            $idtour = $_GET['idtour'];
        }
        $idxoatour ='';
        if (isset($_GET['idxoatour'])) {
            $idxoatour = $_GET['idxoatour'];
        }
        $idsuatour ='' ;
        if (isset($_GET['idsuatour'])) {
            $idsuatour = $_GET['idsuatour'];
        }
        $idquyen ='' ;
        if (isset($_GET['idquyen'])) {
            $idquyen = $_GET['idquyen'];
        }
        $cap_quyen ='' ;
        if (isset($_GET['cap_quyen'])) {
            $cap_quyen = $_GET['cap_quyen'];
        }
        $xoa_nv ='' ;
        if (isset($_GET['xoa_nv'])) {
            $xoa_nv = $_GET['xoa_nv'];
        }
        $pt = '';
        if (isset($_GET['pt'])) {
            $pt = $_GET['pt'];
        }
        $pt_sua_tour = '';
        if (isset($_GET['pt_sua_tour'])) {
            $pt_sua_tour = $_GET['pt_sua_tour'];
        }
        $pt_xoa_tour = '';
        if (isset($_GET['pt_xoa_tour'])) {
            $pt_xoa_tour = $_GET['pt_xoa_tour'];
        }
        $NV ='';
        if (isset($_GET['NV'])) {
            $NV = $_GET['NV'];
        }

        include 'php/function_select.php';
        $sp = new sp_select();
        ?>
        <body>   
            <!--đây là khung support yahoo-->
            <div class="t5" style="width: 100px;height: 500px" >
                <div class="support">
                    <table style="height: 200px;padding-top: 90px;" >
                        <tr >
                            <td class="home"> 
                                <a href="index.php"><img src="./hinh/home.png" /></a>
                            </td>
                        </tr>
                        <tr  class="addthis_toolbox addthis_default_style ">
                            <td >
                                <a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
                            </td>
                        </tr>
                        <tr  class="addthis_toolbox addthis_default_style ">
                            <td >
                                <a class="addthis_button_tweet"></a>
                            </td>
                        </tr>
                        <tr  class="addthis_toolbox addthis_default_style ">
                            <td >
                                <a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a>     
                            </td>
                        </tr>
                        <tr  class="addthis_toolbox addthis_default_style ">
                            <td >
                                <a class="addthis_counter addthis_pill_style"></a>  
                            </td>
                        </tr>
                    </table>                    
                </div>
            </div>
            <div class="t5">
                <div class="tour" >

                    <div class="welcome">
                        <div style="width: 350px;height: 100%;" class="baner">
                            <a href="index.php"><img src="hinh/logo.png"/></a>
                        </div>
                        <div class="baner" id="logo" style="background: url(./hinh/banner_text.png) no-repeat;">
                        </div>
                        <div  class="baner" id="register">
                            <?php
                            if (isset($_SESSION['user'])) {
                                if ($_SESSION['quyen'] == 1) {
                                    echo 'xin chào quản trị viên : <a href="index.php?content=info_canhan" >' . $_SESSION['user'] . '</a>';
                                    ?>
                                    <a href="#" onclick="location.href = './php/info-canhan/thoat.php'">thoát</a>
                                    <?php
                                } else {
                                    echo 'xin chào khách hàng : <a href="index.php?content=info_canhan" >' . $_SESSION['user'] . '</a>';
                                    ?>
                                    <a href="#" onclick="location.href = './php/info-canhan/thoat.php'">thoát</a>
                                    <?php
                                }
                            } else {
                                ?>
                                <a href="index.php?content=dang_ky">đăng ký thành vien</a>
                                /
                                <a href="index.php?content=dangnhap">đăng nhập</a>
                                <?php
                            }
                            ?>
                            <div style="border: 1px solid black;width: 244px;margin-top: 35px;">
                                <form method="post" style="margin-top: 35px;" >
                                    <input type="text" name="Tsearch" class="tim_kiem" id="form_tim_tiem" placeholder="Chọn từ khóa để tìm kiêm"/>
                                    <input type="submit" value="click" name="Ssearch" class="tim_kiem" id="buttom_search"/>
                                </form
                            </div>
                        </div>
                    </div>
                </div>

                <!--đây là phần dùng để chứa thông tin chi tiết của sản phẩm được load ở trên-->
                <div >
                    <?php
                    if (@$content != null && @$idtour != '') {
                        include './php/san-pham/chi-tiet-san-pham.php';
                    } else if (@$content != null && @$idtour == '') {
                        switch ($content) {
                            case 'info_canhan':
                                include './php/info-canhan/info-canhan.php';
                                break;
                            case 'them_tour':
                                include './php/san-pham/them_tour.php';
                                break;
                            case 'sua_tour':
                                include './php/san-pham/sua_tour.php';
                                break;
                            case 'xoa_tour':
                                include './php/san-pham/xoa_tour.php';
                                break;
                            case 'dang_ky' :
                                include './php/info-canhan/dang_ky.php';
                                break;
                            case 'cap_quyen' :
                                include './php/info-canhan/cap_quyen.php';
                                break;
                            case 'dangnhap' :
                                include './php/info-canhan/form_login.php';
                                break;
                        }
                    }
                    ?>
                </div>

                <!--đây là nội dung của tour du lịch-->
                <div style="width: 1100px;height: 100%;margin: auto;margin-top: 30px;border: 1px solid black ;">
                    <div >
                        <?php
                        include './php/sanpham.php';
                        ?>
                    </div>
                </div>
            </div >
            <div class="footer">
                <table style="border: 1px solid #CCC;border-radius: 7px;" class="t10">
                    <tr >
                        <td class="support-online-title" colspan="2">Hỗ Trợ Thanh Toán</td>                    
                    </tr>
                    <tr style="height: 15px;width: 100%;">
                        <td colspan="2"></td>
                    </tr>
                    <tr >
                        <td class="t2">Hỗ trợ qua Yahoo</td>    
                        <td class="t2">Hỗ Trợ Qua Sky</td>                
                    </tr>
                    <tr >
                        <td class="t3"><a href="ymsgr:sendim?luvita65"><img src="http://opi.yahoo.com/online?u=luvita65_civn&amp;t=9" style="margin-right:5px;" width="70" height="50" /></a></td>
                        <td class="t3"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png" style="border: none;" width="110" alt="Skype Me™!" title="Ms Hảo" /></td>                    
                    </tr>
                    <tr >
                        <td colspan="2" class="t4">Hotline: 0902. 196. 774</td>
                    </tr>
                </table>
                <table style="width:680px;height:100%;border: 1px solid #009000; ;border-radius: 7px;margin-left: 20px; " class="t10">
                    <tr>
                        <td>
                            <div class="t6" style="font-weight: bold;">Công ty Cổ Phần Mạng Đặt Tour</div>
                            <div class="t6">ĐC: 95B Phạm Ngũ Lão, P. Thới Bình, Q.Ninh Kiều, TP.Cần Thơ.</div>
                            <div class="t6">ĐT/FAX: 0710 376 9008 - MST: 1801098221</div>
                            <div class="t6">Email: support@mangdattour.com </div>
                            <div class="t6">Giới thiệu mạng đặt tour: http://info.mangdattour.com	</div>
                        </td>
                        <td style="width: 15px;height: 100%;"></td>
                        <td>
                            <div class="t7" style="font-weight: bold;">Thanh toán quảng cáo trực tiếp tại Công ty hoặc chuyển khoản:</div>
                            <div class="t7" style="font-weight: bold;">Chủ TK: CÔNG TY CỔ PHẦN  MẠNG ĐẶT TOUR</div>
                            <div class="t7">Số TK: 0111000155878 - VietcomBank chi nhánh Cần Thơ</div>
                            <div class="t7">Số TK: 100477519 - ACB chi nhánh Cần Thơ</div>
                            <div class="t7">Chủ TK: Hứa Bảo Thụy - Số TK: 0102460156 - Đông Á Bank chi nhánh Cần Thơ</div>
                        </td>
                    </tr>
                </table>
            </div>
            <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
            <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-531c373054644d66"></script>

        </body>
    </html>
